import 'package:flutter_enjoy_plus_ghz/constants/index.dart';
import 'package:flutter_enjoy_plus_ghz/utils/RequestDio.dart';

Future<dynamic> getHouseListAPI() => requestDio.get(HTTP_PATH.HOUSE_LIST);

// 封装新建房屋的api
Future<dynamic> addHouseAPI(data) =>
    requestDio.post(HTTP_PATH.HOUSE_LIST, data: data);

// 获取房租详情
Future<dynamic> getHouseDetailAPI(id) =>
    requestDio.get('${HTTP_PATH.HOUSE_LIST}/$id');
Future<dynamic> delHouseAPI(id) =>
    requestDio.delete('${HTTP_PATH.HOUSE_LIST}/$id');
